<!doctype html>
<html>
 <head>
  <meta charset="UTF-8">  
  <title>鲜花详细信息</title>
 </head>
 <body>
 <?php
   header("Content-type: text/html; charset=utf-8");
   require_once('./system/dbConn.php');
  require_once('./system/myFunc.php');
   connect();
  $id = $_GET['id'];  
  $sql = "select * from flower where zmh_id={$id}";    
  $result = fetch_array($sql); 
  $result = mysql_query($sql) or die('查询失败！'.mysql_error());   
   $row = mysql_fetch_assoc($result);
   //$result=fetch_one($sql); 等同于上两句
   //var_dump($row);   
   $zmh_id = $row['zmh_id'];
   $zmh_title = $row['zmh_title'];
   $zmh_pic = $row['zmh_pic'];  
   $zmh_place = $row['zmh_place'];
   $zmh_intro = $row['zmh_intro'];
   $zmh_adddate = $row['zmh_adddate'];
   $zmh_hint = $row['zmh_hint'];
 
   ?>

 <form method="post"  action="flowerlist.php"  enctype="multipart/form-data">
<table align="center" border="1" width=500>
<caption>鲜花详细信息</caption>
<tr>
  <td width="20%">鲜花编号</td>
  <td width="80%"><?php  echo $id;  ?>
  <input type="hidden" name="id" value=<?php  echo $id;  ?>>  
  </td>
</tr>
<tr>
  <td>鲜花标题</td>
  <td><?php  echo $zmh_title;  ?></td>
</tr>
<tr>
  <td width=150>鲜花图片文件名</td>   
  <td>
  <img src='<?php  echo $zmh_pic;  ?>'>
  </td>
</tr>
<tr>
  <td>鲜花产地</td>
  <td><?php  echo $zmh_place;  ?></td>
</tr>
<tr>
  <td>鲜花简介</td>
  <td><?php  echo $zmh_intro;  ?></td>
</tr>
<tr>
  <td>添加鲜花时间</td>
  <td><?php  echo $zmh_adddate;  ?></td>
</tr>
<tr>
  <td>鲜花点击量</td>
  <td><?php  echo $zmh_hint;  ?></td>
</tr>

<tr>
<td width=150></td>
<td>
<input type="submit" value="返回">

</td>
</tr>
</table>
</form>
 </body>
</html>
